#include<stdio.h>

int main()
{
	int N;
	float high,h,i,x;
	scanf("%f%d",&high,&N);
	 h = high/2;
	 x = high; 
	for(i = 2;i <= N;i++)
	  {
	  	  x = x+h*2;
	  	  h = h/2; 			  	  
	  }
	printf("%.2f %.2f",h,x);
	return 0;
}
